<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="js/jquery.js" type="text/javascript"></script>
<script src="daoepingjs/script_logintab.js" type="text/javascript"></script>
<script src="daoepingjs/script_common.js" type="text/javascript"></script>
<link href="daoepingcss/daoeping.css" rel="stylesheet" type="text/css" />

<title><s:text name="login" /></title>
</head>
<script>
	var msg_loginexist = "<s:text name='login_exist'/>";
	var msg_loginnotexist = "<s:text name='login_notexist'/>";
	var msg_puser = "<s:text name='null_puser'/>";
	var msg_ppwd = "<s:text name='null_ppwd'/>";
	var msg_pverifycode = "<s:text name='null_pverifycode'/>";
	var msg_verifycodeexist = "<s:text name='verifycode_exist' />";
	var msg_verifycodenotexist = "<s:text name='verifycode_notexist' />";
	
</script>

<body
	onload="Tab('faq_tab_title','faq_tab_wrap','current','faq_tab_content');">

	<div class="tab">
		<ul id="faq_tab_title">
			<li class="current"><s:text name="personal"></s:text></li>
			<li><s:text name="enterprise"></s:text></li>
		</ul>
		<div id="faq_tab_wrap">
			<div class="faq_tab_content" style="display: block;">
				<div class="title">
					<s:text name="loginbyemail" />
				</div>
				<form action="view/user/pjoblist.jsp#" method="post" id="mypform">
					<p>
						<s:text name="username" />
						<input id="puser" type="text" name="user.username" maxlength="50"
							value="${user.username }"
							onkeyup="value=value.replace(/[^a-zA-Z0-9@_]/g,'')"
							onblur="verifyNull('user','p')" />
					</p>
					<p>
						<span id="span_puser"> <s:property
								value="errors['user.username'][0]" /></span>
					</p>
					<p>
						<s:text name="password" />
						<input id="ppwd" type="password" name="user.password"
							maxlength="50" value=""
							onkeyup="value=value.replace(/[^a-zA-Z0-9@_]/g,'')"
							onblur="verifyNull('pwd','p')" />
					</p>
					<p>
						<span id="span_ppwd"> <s:property
								value="errors['user.password'][0]" /></span>
					</p>
					<p>
						<s:text name="verifycode" />
						<input id="pverifycode" type="text" name="otherData.verifycode"
							size="6" value="" maxlength="6"
							onkeyup="value=value.replace(/[^0-9_]/g,'')"  /> <img
							src="view/user/verifycode.jsp">

					</p>
					<p>

						<span id="span_pverifycode"> <s:property
								value="errors['otherData.verifycode'][0]" />
						</span> 


					</p>
					<p><span id="span_puserppwd"> <s:property
								value="errors['otherData.verifycode'][0]" /></span></p>
					<p>
						<a class = "button" onclick="mysubmit_plogin()" style="cursor: hand"><s:text
									name="login" /></a> <span id="puserppwd"></span> <span> <a class = "button"
							href="view/user/pregister.jsp" target="_blank" style="text-decoration: none"><s:text
									name="register" /></a><br /> <a href="#" target="_blank"><s:text
									name="forgetpassword" /></a>

						</span>
					</p>
				</form>
				<div class="title">
					<s:text name="usecooperationwebsitelogin" />
				</div>
				<div class="loginlink">
					<a href="#" class="sina"><s:text name="sina" /></a> <a href="#"
						class="msn"><s:text name="msn" /></a> <a href="#" class="qq"><s:text
							name="qq" /></a>
				</div>
			</div>
			<div class="faq_tab_content">
				<div class="title">
					<s:text name="useenterpriseemaillogin" />
				</div>
				<form action="view/user/pjoblist.jsp" method="post" id="mycform">
					<p>
						<s:text name="username" />
						<input id="cuser" name="user.username" type="text" 
						onkeyup="value=value.replace(/[^a-zA-Z0-9@_]/g,'')" onblur="verifyNull('user','c')" maxlength="50"/>
					</p>
					<p>
						<span id="span_cuser"> <s:property
								value="errors['user.username'][0]" /></span>
					</p>
					<p>
						<s:text name="password" />
						<input id="cpwd" name="user.password" type="password" 
						onkeyup="value=value.replace(/[^a-zA-Z0-9@_]/g,'')"  onblur="verifyNull('pwd','c')" maxlength="50"/>
					</p>
					<p>
						<span id="span_cpwd"> <s:property
								value="errors['user.username'][0]" /></span>
					</p>
					<p>
						<s:text name="verifycode" />
						<input id="cverifycode" name="otherData.verifycode" type="text" 
						onkeyup="value=value.replace(/[^0-9_]/g,'')" size="6"   maxlength="6"  /> <img
							src="view/user/verifycode.jsp">
					</p>
				<p>	<span id="span_cverifycode"> <s:property
								value="errors['otherData.verifycode'][0]" />
						</span> </p>
							<p><span id="span_cusercpwd"> <s:property
								value="errors['otherData.verifycode'][0]" /></span></p>
					<p>
						<a class = "button" onclick="mysubmit_clogin()" style="cursor: hand"><s:text
									name="login" /></a>  <span> <br />
							<a href="#" target="_blank"><s:text name="forgetpassword" /></a>
						</span>
					</p>

				</form >

			</div>
		</div>
	</div>
</body>
</html>